package com.yyn.Learning.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yyn.Learning.entity.EduCourseDescription;
import com.yyn.Learning.mapper.EduCourseDescriptionMapper;
import com.yyn.Learning.service.EduCourseDescriptionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 课程简介 服务实现类
 * </p>
 *
 * @author yyn
 * @since 2022-11-20
 */
@Service
public class EduCourseDescriptionServiceImpl extends ServiceImpl<EduCourseDescriptionMapper, EduCourseDescription> implements EduCourseDescriptionService {

    @Override
    public void removeByCourseId(String courseId) {
        LambdaQueryWrapper<EduCourseDescription> eduCourseDescriptionLambdaQueryWrapper = new LambdaQueryWrapper<>();
        eduCourseDescriptionLambdaQueryWrapper.eq(EduCourseDescription::getId,courseId);
        this.remove(eduCourseDescriptionLambdaQueryWrapper);
    }
}
